<?php
	if($_SESSION["IsAdmin"]==true)
	{
		 switch ($_GET["act"])
		 {
			case "spadd":
				include $div["md_link"].'admin/sp.add.php';
				break;
			case "exspadd":
				include $div["md_link"].'admin/sp.exadd.php';
				break;
			case "spsee":
				include $div["md_link"].'admin/xemfull.php';
				break;
			case "viewsp":
				include $div["md_link"].'admin/spview.php';
				break;
			case "exspview":
				include $div["md_link"].'admin/exviewsp.php';
				break;
				
			default:
				echo '
	<meta http-equiv="refresh" content="5; url='.$host["l_link"].'" />
				Module này chưa được tạo!';
		}
	}
	elseif ($_SESSION["IsAdmin"]==false)
	{
		header('location:home.php?typ=tools&act=error');
	}
?>